// Interface
interface IPerson {
    age: number;
    name: string;
    getDetails(): string;
}

// Module
module MainModule {

    // Class
    export class PersonBase implements IPerson {
        // Constructor
        constructor (public age: number, public name: string) { }

        getDetails() { return this.name + ' ' + this.age; }
    }
}
